package com.ruoyi.system.service.impl;


import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.system.domain.CompanyInfo;
import com.ruoyi.system.domain.InstitutionInfo;
import com.ruoyi.system.domain.UserInfo;
import com.ruoyi.system.mapper.InstitutionInfoMapper;
import com.ruoyi.system.mapper.UserInfoMapper;
import com.ruoyi.system.service.IRegisterUserService;
import com.ruoyi.system.service.ItaxUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TaxUserServiceImpl implements ItaxUserService {


    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public UserInfo selectByPrimaryKey(int userId) {
        return userInfoMapper.selectByPrimaryKey(userId);
    }

    @Override
    public int deleteByPrimaryKey(int ids) throws Exception {
        return userInfoMapper.deleteByPrimaryKey(ids);
    }

    @Override
    public int insert(UserInfo userInfo) throws Exception {
        return userInfoMapper.insert(userInfo);
    }

    @Override
    public int insertSelective(UserInfo userInfo) {
        return userInfoMapper.insertSelective(userInfo);
    }

    @Override
    public int updateByPrimaryKeySelective(UserInfo userInfo) {
        return userInfoMapper.updateByPrimaryKeySelective(userInfo);
    }

    @Override
    public int updateByPrimaryKey(UserInfo userInfo) {
        return userInfoMapper.updateByPrimaryKey(userInfo);
    }


    @Override
    public int getUserNameCount(String userName) {
        return userInfoMapper.getUserNameCount(userName);
    }
}
